package com.packet.pojo;// SkillLevelProjectSelectionStrategy.java

import java.util.ArrayList;
import java.util.List;

public class SkillLevelProjectSelectionStrategy implements ProjectSelectionStrategy {
    @Override
    public List<Project> recommendProjects(User user) {
        List<Project> projects = new ArrayList<>();
        // 根据用户的技能水平选择项目
        if (user.getSkillLevel() >= 3) {
            projects.add(new Project("公司差旅管理系统", "项目细节", 2));
            projects.add(new Project("体育用品在线商场", "项目细节", 3));
        } else {
            projects.add(new Project("运动会管理系统", "项目细节", 1));
        }
        return projects;
    }
}

// ProjectComplexityStrategy.java

